#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CLISTTEXTELEMENTUI_LISTTEXTELEMENTUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CLISTTEXTELEMENTUI_LISTTEXTELEMENTUI_H

#include "ListLabelElementUI.h"
#include <atlimage.h>

class IListUI;

class CListTextElementUI:public CListLabelElementUI
{
public:
	CListTextElementUI(void);
	virtual ~CListTextElementUI(void);
	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	void SetOwner(CControlUI* pOwner);

	void Event(TEventUI& event);
	SIZE EstimateSize(SIZE szAvailable);
	void DoPaint(HDC hDC, const RECT& rcPaint);

	void DrawItem(HDC hDC, const RECT& rcItem, UINT uStyle);

protected:
	int m_cyItem;
	int m_nLinks;
	RECT m_rcLinks[8];
	IListUI* m_pOwner;
	CImage m_imgIco;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CLISTTEXTELEMENTUI_LISTTEXTELEMENTUI_H
